package com.kfyang.manualgear.dao;

import com.kfyang.manualgear.annotation.Dao;
import com.kfyang.manualgear.annotation.crud.Modify;
import com.kfyang.manualgear.annotation.crud.Param;
import com.kfyang.manualgear.entity.PlainEntity;

@Dao
public interface ModifyAnnoDao {

    @Modify("update plain set name = {p.name} where id = {p.id}")
    int updateWithResult(@Param("p") PlainEntity entity);

    @Modify("update plain set name = {p.name} where id = {p.id}")
    void update(@Param("p") PlainEntity entity);
}
